<style title="currentStyle">
table.table0 {
	width: 758px;
}
form {
	margin-top:0;
}
input {
background-color:expression(this.readOnly==true?"#CCCCCC":"");
}
</style>
<script src="js_3d/showAmountsFloat.js"></script>
<script>
    //如果右边[新增]人员 ，左边的 tree 才跟着 refresh，目的希望能即时看到新增的人员。 
    if("{ins_chk}" == "ins"){	
        $(function(){	
            $(window.parent.frames["leftAccFrame"].document).find('#btnRefresh').click();
        });
    }
</script>
<script>
    //由於readonly对checkbox不起作用，若改用disabled将传送空值。所以，用javascript的方式做控制。
    $(function(){		
        //需各别指定，才不会影响到其他的 checkbox
        if( $('#chk_percent_day').val() == 'yes'){		  
            $('[name=percent_sw]:checkbox').click(function(){ //六合	
                return false;
            });
            $('[name=percent_sw_3d]:checkbox').click(function(){ //福彩	
                return false;
            });
            $('[name=percent_sw_3t]:checkbox').click(function(){ //体彩	
                return false;
            });
            $('[name=percent_sw_3s1]:checkbox').click(function(){ //时时彩	
                return false;
            });
            $('[name=percent_sw_3s2]:checkbox').click(function(){ //天津	
                return false;
            });
            $('[name=percent_sw_3s3]:checkbox').click(function(){ //重庆	
                return false;
            });
            $('[name=percent_sw_3s4]:checkbox').click(function(){ //江西	
                return false;
            });
            $('[name=percent_sw_5h]:checkbox').click(function(){ //广西	
                return false;
            });
            $('[name=percent_sw_8h]:checkbox').click(function(){ //广东	
                return false;
            }); 
        }	
        $('input[id^="sta_syn"]').click(function(){
            var id_value = ($(this).attr('id')).substr(7,4);
            $('input[id^="mpercent"]').val($('#mpercent'+ id_value).val());
        });
    });
</script>
<input type="hidden" value="{chk_percent_day}" id="chk_percent_day"/>
<div id="divAmountsFloat"></div>
<input type="hidden" value=" 的占成及信用额度异动记录" id="myModifyTitle">
<form action="{action}" method="post" name="f">
  <input type=hidden name=id value="{id}">
  <table>
    <tr valign="top">
      <td><table border="0" cellspacing="1" cellpadding="0" class="mytable">
          <tr>
            <td colspan=4 class=td0>基本资料</td>
            {agentlist}
          <tr>
            <td class=td1>大股东帐号</td>
            <td class=td2 colspan="3"><input maxlength=100 name=account value="{account}" {noeditaccount} size="20"
                                   onKeyPress="return CheckAccountKey()">
              <input {edit_disabled} type=button value="检查帐号"
                                onclick="chkaccount()">
              <font color='red'>{account_msg}</font></td>
          </tr>
          <tr>
            <td class=td1>大股东密码</td>
            <td class=td2 colspan="3"><input type=password maxlength=100 name=pass value="{pass}" size="16">
              {passdesc} <font color='red'>{account_pass}</font></td>
          </tr>
          <tr>
            <td class=td1>大股东名称</td>
            <td class=td2 colspan="3"><input maxlength=100 name=name value="{name}" size="20"></td>
          </tr>
          <tr> {radio_gamemode} </tr>
          <!--<tr>
            <td class=td1>归属总监</td>
            <td class=td2  colspan="3"><input maxlength=100 name=sup_account value="{sup_account}" size="20">
              空白为直属公司</td>
          </tr>-->
          {amount}
          {amount_3d}
          {amount_3s1}
          {mreat}
          {msnow}
          {mprot}
          {msnow_3d}
          {mprot_3d}
          {msnow_3t}
          {mprot_3t}
          {msnow_3s1}
          {mprot_3s1}
          {msnow_3s2}
          {mprot_3s2}
          {msnow_3s3}
          {mprot_3s3}
          {msnow_3s4}
          {mprot_3s4}
          {msnow_3s5}
          {mprot_3s5}
          {msnow_3s6}
          {mprot_3s6}
          {msnow_5h}
          {mprot_5h}
          {msnow_8h}
          {mprot_8h}
          {msnow_8h2}
          {mprot_8h2}
          {msnow_8h3}
          {mprot_8h3}
          {msnow_pk10}
          {mprot_pk10} 
          <tr>
            <td class=td1>可用盘类</td>
            <td class=td2>{alldisk_3d}</td>
            <td class=td1>{{L_STATUS}}</tD>
            <td class=td2><input type=radio name=enabled value=1 {enabled01}>
              启用
              <input type=radio name=enabled value=2 {enabled02}>
              暂停
              <input type=radio name=enabled value=0 {enabled00}>
              停用        
              {mbr_disabled_chk} </td>
          </tr>
          <tr>
            <td class=td1>{{L_CREATEDATE}}</tD>
            <td class=td2>{createdt}</td>
            <td class=td1>{{L_UPDATEDATE}}</tD>
            <td class=td2>{updatedt}</td>
          </tr>
          <tr>
            <td class=td1>{{L_LASTLOGIN}}</tD>
            <td class=td2>{lastlogdt}</td>
            <td class=td1>最後登入IP</tD>
            <td class=td2>{lastlogip}</td>
          </tr>
        </table>
        <table border="0" id="zctable" {zctable} cellspacing="1" cellpadding="0" class="mytable">
          <tr>
            <td colspan=5 class=td0>占成设定</td>
          </tr>
          <tr>
            <td class=td1 colspan=2></td>
            <td class=td1 style="font-weight:bold">大股东最大占成</td>
            <td class=td1 style="font-weight:bold">上限</td>
            <td class=td1 style="font-weight:bold">锁定下线最大占成</td>
           </tr>
          {mpsen}
          {mpsen_3d}
          {mpsen_3t}
          {mpsen_3s1}
          {mpsen_3s2}
          {mpsen_3s3}
          {mpsen_3s4}
          {mpsen_3s5}
          {mpsen_3s6}
          {mpsen_5h}
          {mpsen_8h}
          {mpsen_8h2}
          {mpsen_8h3}
          {mpsen_pk10}
          {memo}
        </table>
    <tr>
      <td colspan=2><input type="submit" name="submit" id="submit" value="{submit}">
        
        <!-- 
                onClick="parent.frames['leftAccFrame'].location.reload();" >
                --> 
        {deletebutton}
        {del_user}
        <input type=reset name=reset1 value="复原">
        <div><strong style="color:red">注意:(1)勾选「锁定下线最大占成」时，该大股东无法自动走飞、无法手动走飞。<br />
          &#12288;&#12288;&nbsp;(2) 管理层走飞一律以A盘走飞。</strong></div></td>
    </tr>
  </table>
</form>
<iframe name=h style="display:none"></iframe>
<script>
    var currencys = [{currencystr}];
    function currency_chg(c)
    {
        f.currency_rate.value = currencys[c.selectedIndex];
    }

    function setdev(s,chg)
    {
        eval("id=f.rates01"+s);
        eval("id0=f.rates00"+s);
        if (!chg) {
            id.value = parseInt(id0.value/2);
            document.all["idn"+s].innerHTML = n2c(id0.value);
        }
    }

    function chkaccount()
    {
        e = document.all.account;
        if (e.value.length>=2) {
            h.location.replace("?op=agent&fp=checkaccount&account=" + e.value);
        } else {
            alert("帐号至少需要 2 码以上！");
        }
    }

    function editamount(id,f3dmode)
    {    	
        location.replace("?op=agent&fp=amount_3d&gametype="+f3dmode+"&id="+id);
    }
</script>